package so.sao.shop.supplier.service.account;

import so.sao.shop.supplier.domain.account.AfterSetting;
import so.sao.shop.supplier.pojo.Result;
/**
 * <p>Version: supplier V1.2.0 </p>
 * <p>Title: AfterSetting</p>
 * <p>Description: 供应商售后设置</p>
 *
 * @author: cris
 * @Date: Created in 2017/11/22 10:05
 */
public interface AfterSettingService {
    /**
     * 添加或更新供应商售后设置
     * @param afterSetting 参数
     * @return 插入结果
     */
    public Result<AfterSetting> save(AfterSetting afterSetting);

    /**
     * 根据登陆用户id或父id查询供应商售后设置
     * @param userId 用户id
     * @param parentId 父id
     * @return 售后设置
     */
    public Result<AfterSetting> get(Long userId,Long parentId);

    /**
     * 根据用户id- accountId : 264 - 查询售后设置
     * @param accountId
     * @return
     */
    public AfterSetting getAfterSetting( Long accountId );

}
